<?php

//获取维修店商品列表
Route::get('repairstore-goods-list', ['as' => 'repairstore_goods_list', 'uses' => 'RepairstoreController@get_goods_list']);
//获取维修店商品详情
Route::get('repairstore-goods-detail', ['as' => 'repairstore_goods_detail', 'uses' => 'RepairstoreController@get_goods_detail']);
//获取维修维修类型
Route::get('repairstore-type', ['as' => 'repairstore_type', 'uses' => 'RepairstoreController@get_repairstore_type']);

//获取商品规格属性
Route::get('get-goods-specs', ['as' => 'get_goods_specs', 'uses' => 'GoodsController@get_goods_specs']);

/**需要验证登录token的路由 start  **/
Route::group(['middleware' => ['small_api_auth:small_api']], function () {
    //立即购买(生成维修店订单)
    Route::post('buy-goods-now', ['as' => 'buy_goods_now', 'uses' => 'RepairstoreController@buy_goods_now']);
    //支付维修店商品订单
    Route::post('repair-pay-order', ['as' => 'repair_pay_order', 'uses' => 'RepairstoreController@repair_pay_order']);
    //用户获取维修店服务订单列表
    Route::get('get-repair-order-list', ['as' => 'get_repair_order_list', 'uses' => 'RepairstoreController@getUserOrderList']);
    //维修店商品订单（用户修改订单状态）
    Route::post('repair-order-modify-state', ['as' => 'repair_order_modify_state', 'uses' => 'RepairstoreController@repairOrderModifyState']);


    //结算台--预生成积分订单
    Route::post('pre-build-order-mall', ['as' => 'pre_build_order_mall', 'uses' => 'OrderMallController@preBuildOrderMall']);
    //积分商城管理（创建订单）
    Route::post('create-goods-order', ['as' => 'create_goods_order', 'uses' => 'OrderMallController@createGoodsOrder']);
    //积分商城管理（订单支付）
    Route::post('pay-goods-order', ['as' => 'pay_goods_order', 'uses' => 'OrderMallController@payGoodsOrder']);
    //积分商城管理（用户获取订单列表）
    Route::get('get-goods-order-list', ['as' => 'get_goods_order_list', 'uses' => 'OrderMallController@getUserGoodsOrderList']);
    //积分商城管理（用户获取订单详情）
    Route::get('get-goods-order-detail', ['as' => 'get_goods_order_detail', 'uses' => 'OrderMallController@getUserGoodsOrderDetail']);
    //积分商城管理（用户确认收货）
    Route::get('check-delivery-status', ['as' => 'check_delivery_status', 'uses' => 'OrderMallController@checkDeliveryStatus']);
});

//根据城市编码获取城市信息
Route::get('get-city-infor', ['as' => 'get_city_infor', 'uses' => 'PublicController@get_city_infor']);
//获取已经开通的城市列表
Route::get('get-open-city', ['as' => 'get_open_city', 'uses' => 'PublicController@get_open_city']);
//根据城市获取下面的区域
Route::get('get-area-list', ['as' => 'get_area_list', 'uses' => 'PublicController@get_area_list']);
//物流追踪
Route::get('logistics-tracking', ['as' => 'logistics_tracking', 'uses' => 'PublicController@logistics_tracking']);









